@extends('admin.layout')
@section('title',$title)
@section('content')
<div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                商品分类列表
                <small>商品分类列表</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                <li><a href="#">商品分类列表</a></li>
                <li class="active">商品分类列表</li>
            </ol>
        </section>
        @if(session('info'))
        <div class="alert alert-danger alert-dismissable">
                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&time;</button>
                            <h4><i class="icon fa fa-ban"></i>提示！</h4>
                            <p>{{session('info')}}</p>
                            </div>
        @endif
        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    

                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title">分类列表</h3>
                        </div><!-- /.box-header -->

                        <div class="box-body">
                           
                                <table id="example1" class="table table-bordered table-striped">
                                <thead>
                                
                                <tr>
                                    <th>ID</th>
                                    <th>分类名</th>
                                    <th>分类关键字</th>
                                    <th>产品分类描述</th>
                                    <th>父分类id</th>
                                    
                                    <th>分类排序</th>
                                    
                                    <th>操作</th>
                                </tr>
                               
                                </thead>
                                <tbody>
                               @foreach($data as $v)
                               <tr>
                                    <td>{{$v -> id}}</td>
                                    <td>{{$v -> name}}</td>
                                    <td>{{$v -> keywords}}</td>
                                    <td>{{$v -> cdesc}}</td>
                                    <td>{{$v -> pid}}</td>
                                    <td>{{$v -> path}}</td>
                                    
                                    
                                    
                                    <td><a href="/admin/cate/edit/{{$v ->id}}">编辑</a>  <a href="/admin/cate/delete/{{$v ->id}}">删除</a></td>
                                </tr>
                                 @endforeach
                                </tbody>
                                
                            </table>
                           
                        </div><!-- /.box-body -->
                    </div><!-- /.box -->
                </div><!-- /.col -->
            </div><!-- /.row -->
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->
    @endsection